<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Event</title>
<script src="../src/js/YAHOO.js" type="text/javascript"></script>
<script src="../src/js/Env.js" type="text/javascript"></script>
<script src="../src/js/Lang.js" type="text/javascript"></script>
<script src="../src/js/Init.js" type="text/javascript"></script>
<style type="text/css">
    #linkContainer {
        position: relative;
        padding: 10px;
        border: 1px solid #333333;
        height: 300px;
        width: 150px;
    }
</style>
<script type="text/javascript">


var D = function() { };

D.prototype.d = function() {
    alert("d from D " + this.id);
};

var E = function() { };
E.prototype.e = function() {
    alert("e from E " + this.id);
};

var F = function() { };

F.prototype.e = function() {
    alert("e from F " + this.id);
};

F.prototype.f = function() {
    alert("f from F " + this.id);
};

var G = function(id) { this.id = id; };
YAHOO.lang.augment(G, D);
YAHOO.lang.augment(G, E);

var H = function(id) { this.id = id; };
YAHOO.lang.augment(H, G);
YAHOO.lang.augment(H, F, "e", "f");

var I = function(id) { this.id = id; };
I.prototype.e = function() {
    alert("e from I " + this.id);
};
I.prototype.f = function() {
    alert("f from I " + this.id);
};

YAHOO.lang.augment(I, F, true);

/*
var g = new G("myG");
g.d();
g.e();

var h = new H("myH");
h.d();
h.e();
h.f();
*/

//var i = new I("myI");
//i.e();
//i.f();




</script>
<body>

<a href="javascript:;">Does nothing</a>
<div id="linkContainer">
  <h3>Header does nothing</h3>
</div>
<input id="addButton" type="button" value="Add link" />
</body>

</html>

